package com.yunsoft.service.impl;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

import com.yunsoft.service.BaseService;

@Service(value="IBaseService")
public class BaseServiceImpl implements BaseService  {
	
	DataSource dataSource;
	JdbcTemplate jdbcTemplate;
	
	@Autowired
	@Override
	public void setDataSource(DataSource db) {
		// TODO Auto-generated method stub
		this.dataSource = db;
		jdbcTemplate = new JdbcTemplate(db);
	}
}
